export default {
    namespaced: true,
    state: () => ({
      hasGoogleAuthenticator: false,
      hasPayPassword: false,
      canWithdraw: false,
    }),
    mutations: {
      SET_GOOGLE_AUTHENTICATOR(state, flag) {
        state.hasGoogleAuthenticator = flag
      },

      SET_HAS_PAY_PASSWORD(state, flag) {
        state.hasPayPassword = flag
      },
      
      SET_CAN_WITHDRAW(state, flag) {
        state.canWithdraw = flag
      }
    },
    actions: {
      setGoogleAuthenticator({ commit }, flag) {
        commit('SET_GOOGLE_AUTHENTICATOR', flag)
      },

      setHasPayPassword({ commit }, flag) {
        commit('SET_HAS_PAY_PASSWORD', flag)
      },

      setCanWithdraw({ commit }, flag) {
        commit('SET_CAN_WITHDRAW', flag)
      }
    }
}